<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">
        <span class="font-bold" translate="aside.nav.process.searchforpatient"></span>
    </h1>
</div>

<div class="wrapper-md">
    <div class="panel panel-default">
        <div ng-controller="PatientIndexCtrl">
            <div class="btn-group m-t-sm col-md-12" ng-controller="PatientSummaryController">
                <div class="btn-group m-t-sm col-md-12">
                    <div class="col-sm-12">
                        <div class="form-inline">
                            <div class="form-group">
                                <input ng-model="$parent.like" class="form-control" placeholder="{{'business.navtitle.keyword' | translate}}" type="text" autocomplete="off">
                            </div>
                            <div class="form-group">
                                <button type="button" class="btn btn-success" ng-click="$parent.filterStatus='all'">
                                    <span translate="business.navtitle.search_patient"></span>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

           <table class="table table-striped m-b-none" dt-disable-deep-watchers="true" ui-options="dtOptions" ui-jq="dataTable">
                <thead>
                    <tr>
                        <th translate="common.id"></th>
                        <th translate="common.name"></th>
                        <th translate="user.icNo"></th>
                        <th translate="user.gender"></th>
                        <th translate="common.status"></th>
                        <th translate="common.updated"></th>
                        <th translate="common.operate"></th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="model in patients">
                        <td>{{ model.patient_Id }}</td>
                        <td>{{ model._user.realName }}</td>
                        <td>{{ model._user.icNo }}</td>
                        <td>{{ model._user.gender }}</td>
                        <td>{{ model.status }}</td>
                        <td>{{ moment(model.updated).format("MM-DD-YYYY") }}</td>
                        <td>
                            <button type="button" class="btn btn-sm btn-info" title="{{ 'common.details' | translate }}"
                                    ng-click="open({ templateUrl: 'viewSearch.html' }, model)">
                                <em class="fa fa-info-circle"></em>
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>

        </div>
    </div>
</div>
<div ng-include="'views/work/templates.html'"></div>